﻿var useLocal = 1;
var uniqueUrl = '?' + new Date().valueOf();
var root = useLocal ? 'https://localhost:44300/Scripts/' : 'https://user-web.googlecode.com/svn/trunk/Scripts/';

if (document.getElementById('user-web-gesture-jquery') == null) {
    var j = document.createElement('script');
    j.setAttribute('id', 'user-web-gesture-jquery');
    j.setAttribute('src', root + 'jquery-2.1.0.min.js');
    document.head.appendChild(j);
    console.log("[user-web-gesture]     inserted            : " + j.src);
}

var s = document.createElement('script');
s.setAttribute('src', root + 'user-web-gesture.js' + uniqueUrl);
s.setAttribute('id', 'user-web-gesture-js');
s.setAttribute('data-local', useLocal);
document.head.appendChild(s);
console.log("[user-web-gesture]     inserted            : " + s.src);
